import request from '@/utils/request'

// 查询店铺运费模板列表
export function listSellerStoreFreightTemplate(query) {
  return request({
    url: '/seller/sellerStoreFreightTemplate/list',
    method: 'get',
    params: query
  })
}

// 查询店铺运费模板详细
export function getSellerStoreFreightTemplate(id) {
  return request({
    url: '/seller/sellerStoreFreightTemplate/' + id,
    method: 'get'
  })
}

// 新增店铺运费模板
export function addSellerStoreFreightTemplate(data) {
  return request({
    url: '/seller/sellerStoreFreightTemplate',
    method: 'post',
    data: data
  })
}

// 修改店铺运费模板
export function updateSellerStoreFreightTemplate(data) {
  return request({
    url: '/seller/sellerStoreFreightTemplate',
    method: 'put',
    data: data
  })
}

// 删除店铺运费模板
export function delSellerStoreFreightTemplate(id) {
  return request({
    url: '/seller/sellerStoreFreightTemplate/' + id,
    method: 'delete'
  })
}
